package fr.echiquierangevin.webapp.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.TextItem;
import com.smartgwt.client.widgets.layout.VLayout;

/**
 * 
 * @author Parant
 * 
 */
public class Echiquierangevin implements EntryPoint {

	public void onModuleLoad() {
		final VLayout layout = new VLayout();
		final DynamicForm form = new DynamicForm();
		final TextItem textItem = new TextItem();
		textItem.setTitle("Name");
		form.setFields(textItem);
		final IButton button = new IButton("Valider");
		layout.addMember(form);
		layout.addMember(button);
		RootPanel.get().add(layout);
	}
}
